package com.zhq.tool.util;

import java.text.DecimalFormat;

/**
 * @ProjectName: fd_tool
 * @Package: com.zhq.tool.util
 * @ClassName: FormatDecimal
 * @Author: jacky
 * @Description: 格式化工具
 * @Date: 2022/2/24 11:20
 * @Version: 1.0
 */
public class FormatDecimal {

    public static String format(double totalMoney) {
        DecimalFormat df = new DecimalFormat("#.00");
        String str = df.format(totalMoney);
        return str;
    }
}
